﻿@model Mvc4WebApiKoTb.Models.Testtemplates.TesttemplateModel

@{
    ViewBag.Title = "Index";
}

<div class="span12">
    <h2>Index - TesttemplateModel</h2>
    <hr />
    <div class="well">Kurzer Beschreibungstext für das aktuelle Formular</div>
</div>
<div class="span12">
    @using (Html.BeginForm("Index", "Testtemplate", FormMethod.Post, new { @class = "form-horizontal" }))
    {
        <fieldset>
            @Html.ValidationSummary()

            <div class="control-group">
                @Html.LabelFor(model => model.Datum, new { @class = "control-label" })

                <div class="controls">
                    @* Aufruf des Standardtemplates für unser Datum. *@
                    @Html.EditorFor(model => model.Datum)
                    @Html.ValidationMessageFor(model => model.Datum)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.Datum, new { @class = "control-label" })

                <div class="controls">
                    @* Aufruf des Custom Templates "Custom.Date" für unser Datum. *@
                    @Html.EditorFor(model => model.Datum, "Custom.Date")
                    @Html.ValidationMessageFor(model => model.Datum)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.Geburtsdatum, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.Geburtsdatum)
                    @Html.ValidationMessageFor(model => model.Geburtsdatum)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.CurrentTime, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.CurrentTime)
                    @Html.ValidationMessageFor(model => model.CurrentTime)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.BirthTime, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.BirthTime)
                    @Html.ValidationMessageFor(model => model.BirthTime)
                </div>
            </div>
            @Html.EditorFor(model => model.Geld)
            @Html.EditorFor(model => model.Geld, "Custom.Int32")
            <div class="control-group">
                @Html.LabelFor(model => model.Name, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.Vorname, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.Vorname)
                    @Html.ValidationMessageFor(model => model.Vorname)
                </div>
            </div>
            <div class="control-group">
                @Html.LabelFor(model => model.HasFather, new { @class = "control-label" })

                <div class="controls">
                    @Html.EditorFor(model => model.HasFather)
                    @Html.ValidationMessageFor(model => model.HasFather)
                </div>
            </div>
            <div class="form-actions">
                <input class="btn btn-primary" type="submit" value="Create" />
            </div>
        </fieldset>
    }
</div>

<div class="span12">
    <div class="well">
        @Html.ActionLink("Zurück zur Auflistung", "Index", null, new { @class = "btn btn-mini" })
    </div>
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
